From: Andreas Schwab Date: Mon, 7 Dec 2009 20:27:40 +0000 (+0000) Subject: (unexec): Don't search for .data twice. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~9018 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=d9684f8fb5636489fdc17ac4dd70143c74b7a1f1;p=emacs.git (unexec): Don't search for .data twice. --- diff --git a/src/ChangeLog b/src/ChangeLog index 316e5804ffd..602742806c5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2009-12-07 Andreas Schwab + + * unexelf.c (unexec): Don't search for .data twice. + 2009-12-05 Chong Yidong * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0 diff --git a/src/unexelf.c b/src/unexelf.c index 45de52dffda..a70ceeddd84 100644 --- a/src/unexelf.c +++ b/src/unexelf.c @@ -922,13 +922,6 @@ unexec (new_name, old_name, data_start, bss_start, entry_address) gets its value adjusted. .bss size becomes zero and new address is set. data2 section header gets added by copying the existing .data header and modifying the offset, address and size. */ - for (old_data_index = 1; old_data_index < (int) old_file_h->e_shnum; - old_data_index++) - if (!strcmp (old_section_names + OLD_SECTION_H (old_data_index).sh_name, - ".data")) - break; - if (old_data_index == old_file_h->e_shnum) - fatal ("Can't find .data in %s.\n", old_name, 0); /* Walk through all section headers, insert the new data2 section right before the new bss section. */